package com.xxxx.server.controller;

import com.xxxx.server.mapper.AdminMapper;
import com.xxxx.server.pojo.Admin;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys/userin")
public class UserInfoController {

    @Autowired
    private AdminMapper adminMapper;

    @ApiOperation(value = "获取所有用户信息")
    @GetMapping("/allAdmin")
    public List<Admin> getAllAdmin(){

        return  adminMapper.selectList(null);
    }

}
